﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Legazpi.Payroll.DataAccess.DataObjects;

namespace Legazpi.Payroll.BusinessLogic.Services.Interfaces
{
    public interface IDetachmentService
    {
        Detachment GetById(int id);
        Detachment GetByQuery(int sectorId, int positionId);
        IEnumerable<Detachment> GetAll();
        IEnumerable<Detachment> GetAllByClientId(int clientId);

        void Add(Detachment detachment);
        void Update(Detachment detachment);
        void Delete(int id);
        bool Save();

    }
}
